/**
 * 
 */
package xj.toolkit.netty.handler.codec.http.reactor;

import io.netty.handler.codec.http.FullHttpRequest;
import xj.toolkit.ebus.EventBus;

/**
 * @author hp
 *
 */
public class RawRequestRecorder implements HttpReactor {

	private EventBus eventBus;
	private String eventRecordRequest;

	public EventBus getEventBus() {
		return eventBus;
	}

	public void setEventBus(EventBus eventBus) {
		this.eventBus = eventBus;
	}

	public String getEventRecordRequest() {
		return eventRecordRequest;
	}

	public void setEventRecordRequest(String eventRecordRequest) {
		this.eventRecordRequest = eventRecordRequest;
	}

	@Override
	public void onHttpRequest(FullHttpRequest request) {
		eventBus.fireEvent(eventRecordRequest, request);
	}

}
